<template>
	<view>
		<view class="container content">
			<image class="logo" src="/static/logo.png"></image>
			<view class="text-area">
				<text class="title">{{title}}</text>
			</view>
			<view class="number">
				<view class="reduce" @click="reduceHandle">减少</view>
				<view class="num">1{{strH}}</view>
				<view class="add" @click="addHandle">增加</view>
			</view>
		</view>
		<!-- 底部 -->
		<tab-bar></tab-bar>
	</view>
</template>

<script>
	import {mapState, mapMutations} from 'vuex'
	import TabBar from '../components/TabBar.vue'
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		components: {
			TabBar
		},
		computed: {
			...mapState(['strH'])
		},
		methods: {
			...mapMutations(['btmNavNavigator']),
			// 改变底部状态
			reduceHandle () {
			},
			addHandle () {
				
			}
		}
	}
</script>

<style lang="less">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	.number{
		display: flex;
		align-items: center;
		.reduce,.add{
			width: 80rpx;
			height: 60rpx;
			font-size: 26rpx;
			line-height: 0;
			border: 1px solid #4CD964;
			display: flex;
			justify-content: center;
			align-items: center;
		}
		.num{
			padding: 0 30rpx;
		}
	}
</style>
